<HTML><HEAD><TITLE>library(quintus)</TITLE></HEAD><BODY>
[ <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]<H1>library(quintus)</H1>
Quintus prolog compatibility package
<H2>Predicates</H2>
<BLOCKQUOTE>
<DL>
<DT><STRONG>abolish ?</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>abolish(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>absolute_file_name(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>atom_chars(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>character_count(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>current_input(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>current_key(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>current_module(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>current_output(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>display(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>dynamic ?</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ensure_loaded(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>erase(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>expand_term(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>flush_output(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>format(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>format(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>gc</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>get0(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>incore(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>instance(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>is_digit(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>is_lower(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>is_upper(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>line_count(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>manual</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>meta_predicate(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>no_style_check(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>nogc</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>nospyall</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>number_chars(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>numbervars(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>op(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>open_null_stream(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>otherwise</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>portray_clause(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>predicate_property(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>prolog_flag(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>prolog_flag(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>public(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>put(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>put_line(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>recorda(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>recorded(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>recordz(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>set_input(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>set_output(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>source_file(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>source_file(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>stream_code(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>stream_position(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>stream_position(?, ?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>style_check(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>term_expansion(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>tr_lib(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttyflush</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttyget(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttyget0(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttynl</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttyput(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttyskip(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>ttytab(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>unix(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>unknown(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>use_module(?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>use_module(?, ?)</STRONG></DT>
<DD>No description available</DD>
<DT><STRONG>version</STRONG></DT>
<DD>No description available</DD>
</DL>
</BLOCKQUOTE>
<H2>Reexports</H2>
<BLOCKQUOTE><DL>
<DT><STRONG>reexport <A HREF="../../lib/cio/index.html">cio</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport <A HREF="../../lib/foreign/index.html">foreign</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport <A HREF="../../lib/multifile/index.html">multifile</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport eclipse_language</STRONG></DT><DD>except get / 1, put / 1, put / 2, instance / 2, abolish / 1, dynamic / 1, display / 1, ensure_loaded / 1, erase / 1, op / 3, recorda / 3, recordz / 3, recorded / 3, use_module / 1, use_module_body / 2</DD>
<DT><STRONG>reexport . / 3 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport consult / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport current_functor / 2 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport current_predicate / 2 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport db_reference / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport erased / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport fileerrors / 0 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport get / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport get0 / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport heapused / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport leash / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport log10 / 2 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport log / 2 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport nofileerrors / 0 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport primitive / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport prompt / 2 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport put / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport reconsult / 1 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport sh / 0 from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
<DT><STRONG>reexport op(_, _, _) from <A HREF="../../lib/cprolog/index.html">cprolog</A></STRONG></DT><DD></DD>
</DL></BLOCKQUOTE>
<H2>Other Exports</H2>
<BLOCKQUOTE><DL>
<DT><STRONG>export op(0, xfx, of)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, xfx, with)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, xfy, do)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, xfx, @)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, fx, -?->)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, fy, not)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, fy, spied)</STRONG></DT><DD></DD>
<DT><STRONG>export op(0, fx, delay)</STRONG></DT><DD></DD>
<DT><STRONG>export macro(with / 2, = / 2, [])</STRONG></DT><DD></DD>
<DT><STRONG>export macro(of / 2, = / 2, [])</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(nl_in_quotes)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(no_array_subscripts)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(limit_arg_precedence)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(doubled_quote_is_quote)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option($VAR)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(bar_is_no_atom)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(no_attributes)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(no_curly_arguments)</STRONG></DT><DD></DD>
<DT><STRONG>export syntax_option(blanks_after_sign)</STRONG></DT><DD></DD>
<DT><STRONG>export chtab(92, symbol)</STRONG></DT><DD></DD>
<DT><STRONG>export chtab(128, string_quote)</STRONG></DT><DD></DD>
<DT><STRONG>export chtab(34, list_quote)</STRONG></DT><DD></DD>
<DT><STRONG>export op(1150, fx, [meta_predicate, multifile, discontiguous, public, mode, dynamic, initialization, volatile])</STRONG></DT><DD></DD>
<DT><STRONG>export macro(library_directory / 1, tr_lib / 2, [clause])</STRONG></DT><DD></DD>
</DL></BLOCKQUOTE>
<H2>Description</H2>

    ECLiPSe includes a Quintus Prolog compatibility package to ease the
    task of porting Quintus Prolog applications to ECLiPSe Prolog.  This
    package does not provide the user with a system completely compatible
    to Quintus Prolog, however it provides most of the Quintus built-in
    predicates, moreover some of the Quintus library predicates are
    available in the ECLiPSe library.  This package includes the C-Prolog
    compatibility package (see Appendix A.6). 
    <P>
    Please note that this appendix does not detail the functionality of
    Quintus Prolog, refer to the Quintus Prolog documentation for this
    information. 
    <P>
    The effect of the compatibility library is local to the module where
    it is loaded. For maximum compatibility, a Quintus program should
    be wrapped in a separate module starting with a directive like
    <PRE>
    :- module(mymodule, [], quintus).
    </PRE>
    In this case, Eclipse-specific language constructs will not be available.
    <P>
    If the compatibility package is loaded into a standard module, e.g. like
    <PRE>
    :- module(mymixedmdule).
    :- use_module(library(quintus)).
    </PRE>
    then Quintus and Eclipse language features can be used together. 
    However, ambiguities must be resolved explicitly and confusion may
    arise from the different meaning of quotes in Eclipse vs Quintus-Prolog.
    <P>
    The following differences remain even with the compatibility package: 
    <DL>
    <DT>expand_term/2 
	<DD>This predicate is dummy, since the ECLiPSe macro facility
	works on every input term, provided that the flag
	macro_expansion is set to on. 
    <DT>get0/2 
	<DD>This predicate is identical to get/2 in ECLiPSe. 
    <DT>help/1 
	<DD>This is the normal ECLiPSe help/1 predicate. 
    <DT>meta_predicate/1 
	<DD>This predicate is not available, as the Quintus method of
	passing the module information to meta predicates differs
	substantially from the ECLiPSe more general concept of tools
	(see Section 9.6.4).  Only the operator definition for this
	functor is available. 
    <DT>multifile/1 
	<DD>This is implemented by declaring the predicates as dynamic, so
	to obtain more efficient programs it is better to put all
	clauses of the same procedure into one file (or to concatenate
	all files where multifile predicates occur). 
    <DT>predicate_property/2 
	<DD>The property interpreted is not provided.  The property
	exported is returned if the predicate is exported or global. 
	Use of get_flag/3 should be preferred. 
    <DT>prolog_flag/2, 3 
	<DD>There are some differences in the flags, as they are mostly
	simulated with the ECLiPSe flags:
	<UL>
	    <LI>not all the character escapes used in the Quintus Prolog
	    are available.
	    <LI>gc_margin is taken as the ECLiPSe flag gc_interval
	    (see Section 19.2)
	    <LI>setting gc_trace to on sets also gc to on
	</UL>
    <DT>public/1
	<DD>synonym for export/1 
    <DT>statistics/0, 2 
	<DD>these predicates are slightly different than in Quintus,
	see the description of the ECLiPSe statistics/2 predicate. 
	The predicate statistics/2 also accepts all Quintus values in
	the Quintus mode, but for stack_shifts is always returns
	zeros.  statistics/0 returns only Quintus values when in
	Quintus mode. 
    <DT>ttyflush/0, ttyget/1, ttyget0/1, ttynl/0, ttyput/1, ttyskip/1, ttytab/1 
	<DD>these predicates work with the stdout stream 
    <DT>line_position/2
	<DD>Not implemented.  To perform sophisticated output formatting,
	printf/2,3 or string streams can be used.
    </DL>
    The list below describes the syntax differences between
    ECLiPSe and Quintus Prolog.  The following properties of Quintus
    Prolog are simulated by the compatibility package: 
    <UL>
	<LI>single (resp.  double) quote must be doubled between
	    single (resp.  double) quote. 
	<LI>The symbol | (bar) is recognised as an alternative sign
	    for a disjunction and it acts as an infix operator. 
	<LI>the symbol | is not an atom
    </UL>
    The following Quintus properties are not simulated: 
    <UL>
	<LI>a clause can not be ended by end of file. 
	<LI>signed numbers: explicitly positive numbers are structures. 
	<LI>a real with an exponent must have a floating point. 
	<LI>a space is allowed before the decimal point and the exponent sign. 
	<LI>the definition of the escape sequence is more extended
	    than in ECLiPSe. 
	<LI>spy/1 and nospy/1 accept as arguments lists, rather than
	    comma-separated terms like in ECLiPSe. 
    </UL>
    
<H2>About</H2><UL COMPACT>
<LI><STRONG>Author: </STRONG>Micha Meier, ECRC Munich
<LI><STRONG>Copyright &copy; </STRONG>Cisco Systems, Inc
<LI><STRONG>Date: </STRONG>$Date: 2009/02/19 05:38:37 $
</UL>
<H2>See Also</H2>
<A HREF="../../lib/cio/index.html">library(cio)</A>, <A HREF="../../lib/cprolog/index.html">library(cprolog)</A>, <A HREF="../../lib/sicstus/index.html">library(sicstus)</A>, <A HREF="../../lib/swi/index.html">library(swi)</A>, <A HREF="../../lib/multifile/index.html">library(multifile)</A><HR>Generated from quintus.eci on 2009-05-27 01:25
</BODY></HTML>
